package com.easybuilder.blog.service;

import com.alibaba.fastjson.JSONObject;
import com.easybuilder.blog.entity.BlogLikes;
import tk.mybatis.mapper.entity.Example;

import java.util.List;
import java.util.Map;

public interface LikesService {

    public List<BlogLikes> selectByExample(Example example);

    /** 点赞或回踩*/
    Map<String, Integer> like(BlogLikes blogLikes);

    /** 批量获取作品的点赞统计数据 */
    List<JSONObject> batchSumLikes(Integer type, String articleIds);

}
